package com.study.samsung.Entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;


@Data
@NoArgsConstructor

public class Commodity {
    private Integer sid;//商品id
    private String  sname;//商品名
    private String  url;//商品主图
    private BigDecimal sprice;//商品价格
    private Boolean isdefault;//是否上架
    private Integer lid;//类别id
    private String lname;//类别名称


    private Integer sxid;
    private BigDecimal xprice;
    private Integer nid;
    private String nname;
    private String yname;
    private String dnumber;
    private Integer dtotal;
    private String pay;

    public Commodity(Integer sid, String sname, String url, BigDecimal sprice,Boolean isdefault, Integer lid) {
        this.sid = sid;
        this.sname = sname;
        this.url = url;
        this.sprice = sprice;
        this.isdefault = isdefault;
        this.lid = lid;
    }

    public Commodity(Integer sid, String sname, String url, BigDecimal sprice,Boolean isdefault, Integer lid,String lname) {
        this.sid = sid;
        this.sname = sname;
        this.url = url;
        this.sprice = sprice;
        this.isdefault = isdefault;
        this.lid = lid;
        this.lname = lname;
    }
}
